﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OrderControl
{
    class Item
    {
        //所有商品
        public static List<Item> ItemList = new List<Item>();
        //商品编号 商品名称 商品价格 商品库存
        public int ItemNumber { get; set; }
        public string Name { get; set; }
        public double Price { get; set; }
        public int Stock { get; set; }
        public Item(int ItemNumber, string Name, double Price, int Stock)
        {
            this.ItemNumber = ItemNumber;
            this.Name = Name;
            this.Price = Price;
            this.Stock = Stock;
        }
   
        public override string ToString()
        {
            return ItemNumber + "-" + Name + "-" + Price + "-" + Stock;
        }        
    }
}
